package com.example.springbootdemo.logoController;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Description:
 * User: 故我
 * Date: 2023-10-30
 * Time: 10:19
 */
@Controller
@ResponseBody
@RequestMapping("/ariter")
@Slf4j   //这个会在类中自动生成一个log对象使用
public class AriterController {
    @RequestMapping("/say")
    public String Say(){
        log.debug("hello,debug");
        log.error("hello,error");
        log.warn("hello,warn");
        return "hello Slf4j";
    }
}
